<link rel="stylesheet" href="<?php echo base_path() ?>plupload/style/style.css" />
<script type="text/javascript" src="<?php echo base_path() ?>plupload/js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="<?php echo base_path() ?>plupload/js/plupload.js"></script>
<script type="text/javascript" src="<?php echo base_path() ?>plupload/js/plupload.flash.js"></script>
<script type="text/javascript" src="<?php echo base_path() ?>plupload/js/plupload.html5.js"></script>        
<script type="text/javascript" src="<?php echo base_path() ?>plupload/js/script.js"></script>

<a id="pickfiles" href="javascript:;">[Chọn ảnh]</a>
<div id="thumbnails"></div>
<input type="hidden" id="thumbnail" name="thumbnail" readonly="true" />
<script type="text/javascript">
$(function(){
    settings.max_file_upload = 8;
    settings.upload_path = 'files/x';
    settings.url = '/upload.php?path=' + settings.upload_path + '&abc=ahjsdh&action=pro';
    settings.create_thumb = true;
    
    uploader = new plupload.Uploader(settings);
    uploader.init();
});
</script>